package com.dcy.quartz.convert;

import com.dcy.quartz.vo.in.JobLogSearchInVO;
import com.dcy.quartz.vo.out.JobLogListOutVO;
import com.dcy.quartz.model.JobLog;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author：dcy
 * @Description:
 * @Date: 2020/12/17 8:47
 */
@Mapper
public interface JobLogConvert {

    JobLogConvert INSTANCE = Mappers.getMapper(JobLogConvert.class);

    JobLog toJobLog(JobLogSearchInVO jobLogSearchInVO);

    JobLogListOutVO toOutput(JobLog jobLog);

    List<JobLogListOutVO> toOutputList(List<JobLog> jobLogs);
}

